package dlwntk6545.swing.outline;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;

public class J12_FlowLayout extends JFrame{
	
	public J12_FlowLayout(){
		
		setDefaultLookAndFeelDecorated(true);
		setTitle("FlowLayout - 수평배치");
		setLayout(new FlowLayout(FlowLayout.CENTER, 40, 40));
		setBounds(250, 250, 870, 600);
		for(int i = 1; i <= 56; i++){
			add(new JButton("버튼 " +  i));
		}
		setVisible(true);
	}
	
	public static void main(String[] args) {
		
		SwingUtilities.invokeLater(new Runnable() {
			
			@Override
			public void run() {
				
				new J12_FlowLayout();
			}
		});
		
	}

}
